<nz-modal
  [nzTitle]="title"
  [nzContent]="content"
  [nzFooter]="footer"
  [nzVisible]="modalVisible"
  (nzOnCancel)="onCancel()"
  (nzOnOk)="onOk()"
>
</nz-modal>

<ng-template #title>
  <h1>Custom Modal Title</h1>
</ng-template>

<ng-template #content>
  <p>Modal Content</p>
  <p>Modal Content</p>
  <p>Modal Content</p>
  <p>Modal Content</p>
  <p>Modal Content</p>
</ng-template>

<ng-template #footer>
  <span>Modal Footer: </span>
  <button nz-button>Custom Callback</button>
  <button nz-button nzType="primary">Custom submit</button>
</ng-template>

<button nz-button nzType="primary" (click)="modalVisible = true">
  Show Modal
</button>
